﻿<UserControl x:Class="FM.录音.Views.选项命令"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:system="clr-namespace:System;assembly=mscorlib"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:viewModels="clr-namespace:FM.录音.ViewModels"
             FontSize="24"
             d:DataContext="{d:DesignInstance Type={x:Type viewModels:选项命令ViewModel}}"
             mc:Ignorable="d">
    <UserControl.Resources>
        <system:Double x:Key="图标高">24</system:Double>
        <system:Double x:Key="按钮高">40</system:Double>
    </UserControl.Resources>
    <Grid>

        <StackPanel Margin="10"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Bottom"
                    Orientation="Horizontal">
            <telerik:RadButton Height="{DynamicResource 按钮高}"
                               MinWidth="120"
                               Margin="15,0"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top"
                               Command="{Binding 确定Command}"
                               IsDefault="True">
                <StackPanel Orientation="Horizontal">
                    <Image Width="{DynamicResource 图标高}"
                           Height="{DynamicResource 图标高}"
                           Source="/FM.素材;component/Images/确定64.png" />
                    <TextBlock Margin="10,0"
                               VerticalAlignment="Center"
                               Text="确定" />
                </StackPanel>
            </telerik:RadButton>
            <telerik:RadButton Height="{DynamicResource 按钮高}"
                               MinWidth="120"
                               Margin="15,0"
                               HorizontalAlignment="Left"
                               VerticalAlignment="Top"
                               Command="{Binding 取消Command}"
                               IsCancel="True">
                <StackPanel Orientation="Horizontal">
                    <Image Width="{DynamicResource 图标高}"
                           Height="{DynamicResource 图标高}"
                           Source="/FM.素材;component/Images/取消64.png" />
                    <TextBlock Margin="10,0"
                               VerticalAlignment="Center"
                               Text="取消" />
                </StackPanel>
            </telerik:RadButton>


        </StackPanel>
    </Grid>
</UserControl>
